#!/usr/bin/python3
# -*- coding: UTF-8 -*-

welcome_img = '/home/pi/workspace/gui/images/2003.png'

# 错误图标提示语
invalid = "大人的东西，小孩不要乱看！"

# 禁止查询监控提示语
forbid = "无权限，请获得门禁权限！"

# 查询监控错误输入提示语
warning = "无可查询监控！"

# 地址选项（可扩展）
total_addr = ("走廊", "小区门口", "地下室", "卧室")
# total_time = ("2019-11-22 18:00", "2019-11-22 18:30")

# IC 卡 GPIO 管脚编号
#ic_card_exec = "rc522"
#ic_card_detect_path = "/home/pi/workspace/iccard/ic_card.txt"
ic_card_pin = 18


# 
# 机关配置详细说明
# 
# 地址
# location
# 
# 日期
# date
# 
# 视频路径
# video
# 
# 视频长度（单位:秒）
# vsize
# 
# 触发 GPIO 管脚电平
# worklevel
# 

key = {}
KEY_NUM = 3

key["location.1"] = "走廊"
key["date.1"] ="2018-09-07"
key["video.1"] = "/home/pi/workspace/gui/video/mishi_1.mp4"
key["vsize.1"] = 13

key["location.2"] = "小区门口"
key["date.2"] ="2018-09-07"
key["video.2"] = "/home/pi/workspace/gui/video/mishi_2.mp4"
key["vsize.2"] = 19

key["location.3"] = "走廊"
key["date.3"] ="2014-11-02"
key["video.3"] = "/home/pi/workspace/gui/video/mishi_3.mp4"
key["vsize.3"] = 22

# 
# 一组视频播放完后，触发 GPIO
# 
# 触发 GPIO 管脚编号
# pin
# 

group = {}
GROUP_NUM = 2

group["part.1"] = [1, 2]
group["pin.1"] = 27
group["worklevel.1.on"] = 1
group["worklevel.1.off"] = 0

group["part.2"] = [1, 2, 3]
group["pin.2"] = 22
group["worklevel.2.on"] = 1
group["worklevel.2.off"] = 0
